package com.lancoo.znbkxx.teacher.model.data


import com.chad.library.adapter.base.entity.MultiItemEntity
import java.math.BigDecimal

/**
 * @author : Admin
 * @date   : 2019/7/22 17:31
 * @desc   :
 */
data class PaperList(
    val List: MutableList<PaperSet>,
    val Count: Int,
    val PageIndex: Int,
    val PageSize: Int
)

data class SearchPaperList(
    val List: MutableList<Paper>,
    val Count: Int,
    val PageIndex: Int,
    val PageSize: Int
)

data class PaperSet(
    val Flag: Int,
    val PaperList: MutableList<Paper>,
    val PredictCount: Int,
    val Producer: String,
    val ProducerName: String,
    val ReleaseCount: Int,
    val SetID: String,
    val SetName: String
)


data class Paper(
    val AverageScore: String,
    val EndTime: String,
    val EvalCount: Int,
    val FullScore: BigDecimal,
    val HighestScore: String,
    val IsNotReview: Int,
    val Layer: Int,
    val PaperID: String,
    val PaperName: String,
    val PaperQualityAnalyze: QualityAnalyze,
    val SetID: String,
    val StartTime: String,
    val State: Int,
    val StuCount: Int,
    val SubmitCount: Int,
    var TempletID: String,
    val UpdateTime: String
) : MultiItemEntity {
    override fun getItemType(): Int {
        return when (State) {
            0, 1 -> 3
            2, 3 -> 2
            else -> 1
        }
    }
}

data class QualityAnalyze(
    val PaperDifficulty: String,
    val PaperDistinguish: String,
    val PaperEffective: String,
    val PaperExposureRate: String,
    val PaperKnowledgeRate: String,
    val PaperMatchRate: String
)